package study.springcloud.discovery.consul.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import study.eggs.result.Result;
import study.eggs.result.Results;


@Slf4j
@RestController
public class EchoController {

    @RequestMapping("/echo")
    public Result echo(String name) {
        log.info("echo echo echo, {}", name);
        return Results.ok();
    }
}
